<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <script>
        // 1.简单类型
        let num = 1
        let food = '惠灵顿牛排'
        let male = false
        let empty = undefined

        // 无需给类型，打印时直接用console打印即可
        console.log(num,food,male,empty)

        // 2. 复杂类型
        let person = {
            name:'jack',
            age:18,
            male:false
        }
        console.log(person)

        let arr = ['asdas','asdas','asdas','asdas','asdas','asdas']
        console.log(arr)

        let sayHi = function () {
            console.log('你好')
        }
        sayHi()

    </script>
</body>
</html>